import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

// 改纺计划

// 创建改纺计划
export const creationChangePlan = (data) => postRequest('/production/change-spinning-plan/create', data);
// 确定改纺计划状态
export const notarizeChangePlanState = (data) => postRequest('/production/change-spinning-plan/update-audit-state', data);
// 获得改纺计划--详情
export const getChangePlanPage = (params) => getRequest('/production/change-spinning-plan/get', params);
export const productionChangeSpinningPlanGetCode = (params) => getRequest('/production/change-spinning-plan/get-code', params);
// 获得改纺计划分页
export const getChangePlan = (params) => getRequest('/production/change-spinning-plan/page', params);
// 根据翻改任务获得改纺计划子项集合
export const subitem = (data) => postRequest('/production/change-spinning-plan/get-items-by-change-ids', data);
// 更新改纺计划
export const updateProduction = (params) => putRequest('/production/change-spinning-plan/update', params);
